Skip to content

[Next]Add Token Exchange grant type to agent application template#10185

Open
ranuka-laksika wants to merge 1 commit intowso2:nextfrom
ranuka-laksika:next-branch-changes
Open

[Next]Add Token Exchange grant type to agent application template#10185
ranuka-laksika wants to merge 1 commit intowso2:nextfrom
ranuka-laksika:next-branch-changes

Conversation

@ranuka-laksika
Copy link
Copy Markdown
Contributor

@ranuka-laksika ranuka-laksika commented Apr 24, 2026

Summary

This PR enhances the agent application template and creation flow with one key improvements:

Token Exchange Grant Type Support - Agent applications now include the Token Exchange grant type (urn:ietf:params:oauth:grant-type:token-exchange) by default

Changes

Token Exchange Grant Type

Files Modified:

  • features/admin.extensions.v1/application-templates/templates/agent-application/agent-application.json
  • features/admin.extensions.v1/configs/application.tsx

What Changed:

  • Added urn:ietf:params:oauth:grant-type:token-exchange to the default grant types in the agent application template
  • Updated the allowed grant types configuration to display Token Exchange as a selectable option in the UI
  • Agent applications now support token exchange grant type

Grant Types for Agent Applications:

  • Authorization Code
  • Refresh Token
  • CIBA
  • Token Exchange (newly added)

Issue:- wso2/product-is#27653

image

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 24, 2026

📝 Walkthrough

Walkthrough

Adds Token Exchange grant type support to the agent application template across configuration files and JSON template definition. Includes a changeset entry marking both related packages for patch version updates.

Changes

Cohort / File(s) Summary
Changesets
.changeset/fluffy-parents-burn.md
Changeset entry marking @wso2is/admin.extensions.v1 and @wso2is/console packages for patch updates with Token Exchange grant type addition description.
Agent Application Configuration
features/admin.extensions.v1/application-templates/templates/agent-application/agent-application.json, features/admin.extensions.v1/configs/application.tsx
Adds urn:ietf:params:oauth:grant-type:token-exchange grant type to agent application template JSON and updates TypeScript configuration to include ApplicationManagementConstants.OAUTH2_TOKEN_EXCHANGE alongside existing grant type support.
🚥 Pre-merge checks | ✅ 5 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description provides clear purpose, summary of changes, related issue link, and specific files modified, but does not address any of the checklist items from the required template. Complete the required checklist items (e2e tests, manual testing, UX/UX review, documentation, backend verification, unit/integration tests, security checks, and developer checklist) to match the repository's PR template requirements.
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Changeset Required ✅ Passed The pull request includes a valid changeset file at .changeset/fluffy-parents-burn.md which matches the required pattern and is not the README file. The changeset properly documents patch updates for both @wso2is/admin.extensions.v1 (the directly modified package) and @wso2is/console (correctly included as a dependent package since the PR modifies files in the features/admin.extensions.v1/ directory). All pass criteria are satisfied: the changeset file exists, follows the naming convention, includes appropriate package entries, and specifies correct version update types.
Title check ✅ Passed The title accurately and clearly summarizes the main change: adding Token Exchange grant type support to the agent application template, which aligns with all three modified files and the PR objectives.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.05%. Comparing base (7a45b88) to head (60dc603).
⚠️ Report is 6 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next   #10185   +/-   ##
=======================================
  Coverage   56.05%   56.05%           
=======================================
  Files          42       42           
  Lines        1024     1024           
  Branches      254      231   -23     
=======================================
  Hits          574      574           
  Misses        450      450           
Flag Coverage Δ
@wso2is/core 56.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ranuka-laksika ranuka-laksika changed the title Add Token Exchange grant type to agent application template [Next]Add Token Exchange grant type to agent application template Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant